function add(tbl){
	let user_id=tbl.user_id
	let app_name=tbl.appname
	let app_id=tbl.appid
	let app_key=tbl.appkey
	let count=dao.count("cmf_app_lists",Cnd.where("app_key","=",app_key))
	if(count>=1){
		attr("return",{"error":201,"message":"appkey存在请更换","code":201})
	}else{
		let count2=dao.count("cmf_app_lists",Cnd.where("app_id","=",app_id))
		if(count2>=1){
			attr("return",{"error":201,"message":"appid存在请更换","code":201})
		}else{
			try {
				let tab=new Record();
				let create_time=System.currentTimeMillis()+"";
				create_time=create_time.substring(0,create_time.length()-3);
				tab.put("list_create_time",create_time)
				tab.put("user_id",user_id)
				tab.put("app_name",app_name)
				tab.put("app_id",app_id)
				tab.put("app_key",app_key)
				tab.put("_table","cmf_app_lists")
				tab.put("+id","list_uuid")
				tab=dao.insert(tab)
				attr("return",{"error":200,"message":"success","code":200,"data":
				{"name":app_name,"id":tab.list_uuid}})
			} catch (e) {
				print(e)
				attr("return",{"error":202,"message":"请求方式正确，数据获取失败","code":202})
			}
		}
	}
	
	return "json"
}